package com.longxiao.vo;

import com.longxiao.entity.CpStat;

import java.util.Date;

/**
 * Created by yusong on 2017/5/7.
 * 用户日积分统计
 */
public class DateCpScoreVo extends CpScoreVo {
    //日期
    private Date date;
    //正分记录总分
    private Integer positiveScore;
    //正分记录条数
    private Integer positiveCount;
    //负分记录总分
    private Integer negativeScore;
    //负分记录条数
    private Integer negativeCount;


    public DateCpScoreVo(CpStat totalStat, CpStat postiveStat, CpStat negtiveStat,Date date) {
        super(totalStat.getUserId(), totalStat.getTotalCp());
        this.date = date;
        this.positiveScore = postiveStat.getTotalCp();
        this.positiveCount = postiveStat.getCount();
        this.negativeScore = negtiveStat.getTotalCp();
        this.negativeCount = negtiveStat.getCount();
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getPositiveScore() {
        return positiveScore;
    }

    public void setPositiveScore(Integer positiveScore) {
        this.positiveScore = positiveScore;
    }

    public Integer getPositiveCount() {
        return positiveCount;
    }

    public void setPositiveCount(Integer positiveCount) {
        this.positiveCount = positiveCount;
    }

    public Integer getNegativeScore() {
        return negativeScore;
    }

    public void setNegativeScore(Integer negativeScore) {
        this.negativeScore = negativeScore;
    }

    public Integer getNegativeCount() {
        return negativeCount;
    }

    public void setNegativeCount(Integer negativeCount) {
        this.negativeCount = negativeCount;
    }
}
